export default {
    panels: [
        {
        index: 0,
        name: 1,
        height: 297,
        width: 210,
        paperHeader: 141,
        paperFooter: 783,
        printElements: [
        {
        options: {
        left: 459,
        top: 36,
        height: 15,
        width: 130.5,
        title: "仓库",
        field: "house",
        coordinateSync: false,
        widthHeightSync: false,
        fontSize: 12,
        fontWeight: "bold",
        qrCodeLevel: 0,
        right: 503.25,
        bottom: 25.5,
        vCenter: 480,
        hCenter: 18
        },
        printElementType: {
        title: "文本",
        type: "text"
        }
        },
        {
        options: {
        left: 250.5,
        top: 37.5,
        height: 19.5,
        width: 120,
        title: "签 单 表",
        coordinateSync: false,
        widthHeightSync: false,
        fontFamily: "Microsoft YaHei",
        fontSize: 18,
        fontWeight: "700",
        textAlign: "center",
        qrCodeLevel: 0,
        right: 369.75,
        bottom: 57,
        vCenter: 309.75,
        hCenter: 47.25,
        color: "#cc1d1d"
        },
        printElementType: {
        title: "文本",
        type: "text"
        }
        },
        {
        options: {
        left: 91.5,
        top: 55.5,
        height: 19,
        width: 133,
        field: "con",
        testData: "XS888888888",
        fontSize: 12,
        lineHeight: 18,
        textAlign: "center",
        textType: "barcode",
        title: "条形码",
        coordinateSync: false,
        widthHeightSync: false,
        qrCodeLevel: 0,
        right: 203.25,
        bottom: 57.25,
        vCenter: 144.75,
        hCenter: 47.75
        },
        printElementType: {
        title: "条形码",
        type: "text"
        }
        },
        {
        options: {
        left: 36,
        top: 57,
        height: 15,
        width: 46.5,
        title: "合同号:",
        coordinateSync: false,
        widthHeightSync: false,
        fontSize: 12,
        fontWeight: "bold",
        qrCodeLevel: 0,
        right: 58.5,
        bottom: 30,
        vCenter: 35.25,
        hCenter: 22.5
        },
        printElementType: {
        title: "文本",
        type: "text"
        }
        },
        {
        options: {
        left: 457.5,
        top: 63,
        height: 15,
        width: 130.5,
        title: "楼栋",
        field: "whouse",
        coordinateSync: false,
        widthHeightSync: false,
        fontSize: 12,
        fontWeight: "bold",
        qrCodeLevel: 0,
        right: 58.5,
        bottom: 30,
        vCenter: 35.25,
        hCenter: 22.5
        },
        printElementType: {
        title: "文本",
        type: "text"
        }
        },
        {
        options: {
        left: 241.5,
        top: 79.5,
        height: 15,
        width: 93,
        title: "项数",
        field: "xs",
        coordinateSync: false,
        widthHeightSync: false,
        fontSize: 12,
        fontWeight: "bold",
        qrCodeLevel: 0,
        right: 337.5,
        bottom: 85.5,
        vCenter: 291,
        hCenter: 78
        },
        printElementType: {
        title: "文本",
        type: "text"
        }
        },
        {
        options: {
        left: 346.5,
        top: 79.5,
        height: 15,
        width: 94.5,
        title: "数量",
        field: "qty_s",
        coordinateSync: false,
        widthHeightSync: false,
        fontSize: 12,
        fontWeight: "bold",
        qrCodeLevel: 0,
        right: 425.25,
        bottom: 94.5,
        vCenter: 378,
        hCenter: 87
        },
        printElementType: {
        title: "文本",
        type: "text"
        }
        },
        {
        options: {
        left: 459,
        top: 90,
        height: 15,
        width: 129,
        title: "货位",
        field: "position",
        coordinateSync: false,
        widthHeightSync: false,
        fontSize: 12,
        fontWeight: "bold",
        qrCodeLevel: 0,
        right: 477.75,
        bottom: 81,
        vCenter: 454.5,
        hCenter: 73.5
        },
        printElementType: {
        title: "文本",
        type: "text"
        }
        },
        {
        options: {
        left: 88.5,
        top: 100.5,
        height: 19,
        width: 133,
        field: "cid",
        testData: "XS888888888",
        fontSize: 12,
        lineHeight: 18,
        textAlign: "center",
        textType: "barcode",
        title: "条形码",
        coordinateSync: false,
        widthHeightSync: false,
        qrCodeLevel: 0,
        right: 201.75,
        bottom: 100.75,
        vCenter: 141.75,
        hCenter: 91.25
        },
        printElementType: {
        title: "条形码",
        type: "text"
        }
        },
        {
        options: {
        left: 36,
        top: 102,
        height: 15,
        width: 46.5,
        title: "识别码:",
        coordinateSync: false,
        widthHeightSync: false,
        fontSize: 12,
        fontWeight: "bold",
        qrCodeLevel: 0,
        right: 56.25,
        bottom: 64.5,
        vCenter: 33,
        hCenter: 57
        },
        printElementType: {
        title: "文本",
        type: "text"
        }
        },
        {
        options: {
        left: 15,
        top: 146,
        height: 54,
        width: 475.5,
        field: "table",
        coordinateSync: false,
        widthHeightSync: false,
        right: 565,
        bottom: 185.25,
        vCenter: 290,
        hCenter: 167.25,
        tableHeaderRowHeight: 24,
        tableHeaderFontSize: 13.5,
        tableHeaderFontWeight: "bold",
        fontFamily: "SimSun",
        fontSize: 13.5,
        lineHeight: 12,
        tableBodyRowHeight: 25.5,
        rowsColumnsMerge: `function(data, col, collndex, rowlndex, tableData, printData) {
            // 只处理第一列 (Item 列)
            if (collndex < 2) {
                // 获取当前行的 Item 值
                const currentItem = tableData[rowlndex]['Item'];
                // 获取上一行的 Item 值
                const previousItem = rowlndex > 0 ? tableData[rowlndex-1]['Item'] : null;
        
                // 如果当前行和上一行的 Item 值相同，则合并
                if (currentItem === previousItem) {
                    return [0, 1]; // 被合并的行设置为 0
                } else {
                    // 计算有多少行需要合并
                    let rowspan = 1;
                    for (let i = rowlndex + 1; i < tableData.length; i++) {
                        if (tableData[i]['Item'] === currentItem) {
                            rowspan++;
                        } else {
                            break;
                        }
                    }
                    return [rowspan, 1]; // 返回合并的行数
                }
            }
            return [1, 1]; // 其他列不合并
        }
                `,
        columns: [
        [
        {
        width: 102.78739886301594,
        title: "编码",
        field: "Item",
        checked: true,
        columnId: "Item",
        fixed: false,
        rowspan: 1,
        colspan: 1,
        align: "center",
        tableQRCodeLevel: 0,
        tableSummaryTitle: true,
        tableSummary: ""
        },
        {
        width: 41.053467330837925,
        title: "数量",
        field: "Qty",
        checked: true,
        columnId: "Qty",
        fixed: false,
        rowspan: 1,
        colspan: 1,
        align: "center",
        tableQRCodeLevel: 0,
        tableSummaryTitle: true,
        tableSummary: ""
        },
        {
        width: 62.10395878029619,
        title: "品牌",
        field: "Brand",
        checked: true,
        columnId: "Brand",
        fixed: false,
        rowspan: 1,
        colspan: 1,
        align: "center",
        tableQRCodeLevel: 0,
        tableSummaryTitle: true,
        tableSummary: ""
        },
        {
        width: 146.29399690234925,
        title: "型号",
        field: "Model",
        checked: true,
        columnId: "Model",
        fixed: false,
        rowspan: 1,
        colspan: 1,
        align: "center",
        tableQRCodeLevel: 0,
        tableSummaryTitle: true,
        tableSummary: ""
        },
        {
        width: 84.13971867524182,
        title: "产地",
        field: "Origin",
        checked: true,
        columnId: "Origin",
        fixed: false,
        rowspan: 1,
        colspan: 1,
        align: "center",
        tableQRCodeLevel: 0,
        tableSummaryTitle: true,
        tableSummary: ""
        },
        {
        width: 39.12145944825885,
        title: "欧盟",
        field: "EU",
        checked: true,
        columnId: "EU",
        fixed: false,
        rowspan: 1,
        colspan: 1,
        align: "center",
        tableQRCodeLevel: 0,
        tableSummaryTitle: true,
        tableSummary: ""
        },
        {
        width: 100,
        title: "名称",
        field: "NAME",
        checked: false,
        columnId: "NAME",
        fixed: false,
        rowspan: 1,
        colspan: 1,
        align: "center"
        },
        {
        width: 100,
        title: "数量",
        field: "SL",
        checked: false,
        columnId: "SL",
        fixed: false,
        rowspan: 1,
        colspan: 1,
        align: "center"
        },
        {
        width: 100,
        title: "条码",
        field: "TM",
        checked: false,
        columnId: "TM",
        fixed: false,
        rowspan: 1,
        colspan: 1,
        align: "center"
        },
        {
        width: 100,
        title: "规格",
        field: "GG",
        checked: false,
        columnId: "GG",
        fixed: false,
        rowspan: 1,
        colspan: 1,
        align: "center"
        },
        {
        width: 100,
        title: "单价",
        field: "DJ",
        checked: false,
        columnId: "DJ",
        fixed: false,
        rowspan: 1,
        colspan: 1,
        align: "center"
        },
        {
        width: 100,
        title: "备注",
        field: "DETAIL",
        checked: false,
        columnId: "DETAIL",
        fixed: false,
        rowspan: 1,
        colspan: 1,
        align: "center"
        }
        ]
        ]
        },
        printElementType: {
        title: "表格_默认表格",
        type: "table",
        editable: true,
        columnDisplayEditable: true,
        columnDisplayIndexEditable: true,
        columnTitleEditable: true,
        columnResizable: true,
        columnAlignEditable: true,
        isEnableEditField: true,
        isEnableContextMenu: true,
        isEnableInsertRow: true,
        isEnableDeleteRow: true,
        isEnableInsertColumn: true,
        isEnableDeleteColumn: true,
        isEnableMergeCell: true
        }
        },
        {
        options: {
        left: 10.5,
        top: 792,
        height: 16,
        width: 172.5,
        field: "LotNoDate",
        testData: "2020-01-01",
        fontSize: 12,
        fontWeight: "bold",
        textContentVerticalAlign: "middle",
        title: "派发日期",
        coordinateSync: false,
        widthHeightSync: false,
        qrCodeLevel: 0
        },
        printElementType: {
        title: "业务日期",
        type: "text"
        }
        },
        {
        options: {
        left: 291,
        top: 793.5,
        height: 15,
        width: 87,
        title: "波次",
        field: "LotNo",
        coordinateSync: false,
        widthHeightSync: false,
        fontSize: 12,
        fontWeight: "bold",
        qrCodeLevel: 0,
        right: 337.5,
        bottom: 808.5,
        vCenter: 314.25,
        hCenter: 801
        },
        printElementType: {
        title: "文本",
        type: "text"
        }
        }
        ],
        paperNumberLeft: 558,
        paperNumberTop: 816,
        paperNumberContinue: true,
        watermarkOptions: {}
        }
        ]
};